package au.com.bus4u.service;

import au.com.bus4u.utils.PageData;

import java.util.List;

/**
 * 订单业务层接口
 */
public interface OrderOldService {

    /**新增
     * @param pd
     * @throws Exception
     */
    public int save(PageData pd)throws Exception;



    /**删除
     * @param order_id
     * @throws Exception
     */
    public int delete(Integer order_id)throws Exception;


    /**批量删除
     * @param DATA_IDS
     * @throws Exception
     */
    public int deleteAll(String[] DATA_IDS)throws Exception;

    /**修改
     * @param pd
     * @throws Exception
     */
    public int edit(PageData pd)throws Exception;




    /**列表(带条件搜索)
     * @param pd
     * @throws Exception
     */
    public List<PageData> list(PageData pd)throws Exception;




    /**通过id获取数据
     * @param order_id
     * @throws Exception
     */
    public PageData findById(Integer order_id)throws Exception;

    /**通过id获取数据
     * @param user_id
     * @throws Exception
     */
    public List<PageData> findByUserId(String user_id, String startTime, String endTime, Integer order_status)throws Exception;

    /**通过订单id获取该订单的状态order_status
     * @param id
     * @throws Exception
     */
    public Integer findStatusById(Integer id)throws Exception;


}
